package com.yan.service;

import com.yan.pojo.Student;
import com.yan.pojo.Teacher;

import java.util.List;

public interface AdminService {
    // 查看所有学生信息
    List<Student> studentList();

    Student getStudentById(Integer studentId);

    public boolean addStudent(Student student);

    public boolean addTeacher(Teacher teacher);

    public boolean delTeacherById(Integer id);

    public boolean updateStudent00(Student student);

    public boolean delStudentByStudentId(Integer studentId);

    // 修改学生密码
    public boolean updateStudentPassword(Integer studentId, String newPassword);

    public boolean updateTeacherPassword(Teacher teacher);

    public boolean saveEditTeacher(Teacher teacher);

    // 模糊查询
    List<Student> findStudent(String keyWords);

    // 获得被删除的学生
    public List<Student> getStudentsBeDeleted();
    // 清理被删除的学生
    public boolean clearAllDelete();



}
